/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package db.bbaum;

import db.bbaum.parts.Blatt;
import db.bbaum.parts.Knoten;
import java.util.ArrayList;

/**
 *
 * @author Christian
 */
public class BaumController implements iBaumController{
    
    Blatt wurzel = null;
    

    public int createWurzel(int k)
    {
        if(wurzel == null)
        {
            wurzel = new Blatt(k);
            return 0;
        }
        else
        {
            return -1;
        }
    }

    @Override
    public int addValue(int value) {
        //throw new UnsupportedOperationException("Not supported yet.");
        if(wurzel.getAnzahlKnoten() == 0)
    }

    @Override
    public Object searchValue(int value) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public Object deleteValue(int value) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    
}
